const initialState = { follow: {}, collect: {}, historyList: {} }
export default function MyReducer(state = initialState, active) {
  switch (active.type) {
    case "GET_FOLLOW":
      return {
        ...state,
        follow: active.payload
      }
    case "GET_COLLECT":
      return {
        ...state,
        collect: active.payload
      }
    case "GET_HISTORY":
      return {
        ...state,
        historyList: active.payload
      }
    default:
      return state
  }
}
